<link rel="stylesheet" href="css/contractLibrary/contractLibraryCollect.css">
<div class="contractLibraryCollect wt-scroll clearfix" ng-show="contractLi.total > 0">
  <div class="collect-left" style="height:750px;">
    <div class="left-head clearfix">
      <i class="iconfont">&#xe69e;</i><span>收藏分类</span>
    </div>
    <div class="left-list">
        全部模板({{totalNum}})
    </div>
    <div class="line"></div>
    <div ng-repeat="(pk, item) in menuList">
      <div class="left-list"  ng-click="showSubMenu(pk)">
        <i ng-show="!item.isckd" class="iconfont">&#xe6fd;</i>
        <i ng-show="item.isckd" class="iconfont">&#xe673;</i>
        <div class="conList_item_left fl"></div>
        {{item.parentName}}({{item.count}})

      </div>
      <div class="line-short"></div>
      <div class="left-list-sub" ng-show="item.isckd">
        <ul class="clearfix">
          <li ng-repeat="(k, vo) in item.children" ng-click="selectMenu(vo.typeName, k, pk)" ng-class="{'active': selLi == pk+'-'+k}">
            <div class="conList_item_left fl"></div>
            {{vo.typeName}}({{vo.count}})
          </li>
        </ul>
        <div class="line-short"></div>
      </div>


    </div>



  </div>
  <div class="collect-right wt-scroll" >
    <dl class="collect-right-list">
      <dt>
        <span class="library-name">名称</span>
        <span class="library-desc">描述</span>
        <span class="library-view">浏览量</span>
        <span class="library-down">下载量</span>
        <span class="library-opt">操作</span>
      </dt>

      <dd ng-repeat="item in tempList">
        <div class="conList_item_right fl"></div>
        <span class="library-name">{{item.contractName}}</span>
        <span class="library-desc">{{item.description}}</span>
        <span class="library-view">{{item.readCount?item.readCount:0}}</span>
        <span class="library-down">{{item.downloadCount?item.downloadCount:0}}</span>
        <span class="library-opt">
          <ul class="opt_item_right">
              <li ng-click="downloadFileProgress(item, $index)"><i class="iconfont icon-down">&#xe823;</i><span>下载</span></li>
              <li ng-click="delCollect(item, $index)" data-id="{{item.id}}" data-index="{{$index}}"><i class="iconfont icon-star">&#xe6ab;</i><span>取消收藏</span></li>
              <li ui-sref="contractLibraryView({id:item.id})"><i class="iconfont icon-view">&#xe688;</i><span>预览</span></li>
          </ul>
        </span>
      </dd>

        <div class="pagingBox" ng-show="contractLi.total > 10" style="margin:0px;" scroll-top="fh">
          <div class="ssqPagingSimple">
            <ul uib-pagination total-items="contractLi.total" ng-model="contractLi.beginNum" items-per-page="contractLi.pageSize" class="pagination-sm" boundary-link-numbers="true" ng-change="getContractLibrary()" max-size="10" previous-text="上一页" next-text="下一页" ></ul>
          </div>
        </div>
      </dd>
    </dl>
  </div>
</div>

<div class="no-collect" ng-show="!contractLi.total">
  <div class="no-img"><img src="img/no_collect.png" width="288px" height="217px"></div>
  <div class="no-text">
    <p class="text-no">暂无收藏模板</p>
    <p class="text-msg">在模板库中收藏的合同模板将会在此页面展示，方便随时调用和查阅</p>
  </div>
</div>

<script>
  $(window).ready(function () {

    /*设置屏幕高度*/
    setHeight();
    function setHeight() {
      var maxHeight = $(window).height()-129 + 'px';
      $(".contractLibraryCollect").css("height",maxHeight);
      $(".collect-right").css("height",maxHeight);
      $(".collect-left").css("height",maxHeight);
      $(".no-collect").css("height",maxHeight);

    };
    $(window).resize(function() {
      setHeight();
    });

  })
</script>
